async function handleAreaData(projectAreaCode, projectCode) {
    const { areaRows, equipmentRows, fusesRows } = await _videoAccess.queryQuotaByArea(projectAreaCode, projectCode);
    _videoAccess.renderTree([...areaRows, ...equipmentRows, ...fusesRows], projectAreaCode);
}

console.log(window)

window.handleFuse([window.spliceOldVideo.data, window.spliceSource], () => {
    // 关闭旧的摄像头
    window.spliceSullivan.close(window.spliceIndex);
    // 保存拼接
    return _videoAccess.insertVideoFuse([window.spliceOldVideo.data, window.spliceSource]).then(res => {
        if (window.spliceOldVideo?.data) {
            const { projectAreaCode, projectCode } = window.spliceOldVideo.data;
            // 刷新树
            handleAreaData(projectAreaCode, projectCode)
        }
        layer.msg('视频融合成功!');

        const modals = this.pageObj.getApiWidgetsByClassName('video-splice-modal');
        modals.forEach(v => v.hideWidget());
        return res
    });
})